<#assign pageName="">
<@override name="page-content">	
<form class="layui-form form-horizontal" role="form" method="post">   
      <div class="layui-form-search panel">
      	 <input type="text" hidden="hidden" name="_STATE"/> 
        <div class="layui-form-item margin-5">
          <label class="layui-form-label" for="${id}">所属部门</label>
          <div class="layui-input-inline">
              <select id="depId" class="width-190" name="depId"  lay-filter="depId">
                <#if depList?has_content>
                   <option value="">—请选择所属部门—</option>
                  <#list depList as Item>
                    <option value="${Item.depId}">${Item.depName}</option>
                  </#list>
                </#if>
              </select>
          </div>
      </div>
         <div class="pull-left padding-5"> 
	          <a href="javascript:" onclick="$('form:first').submit();" class="layui-btn layui-btn-sm">
                <i class="layui-icon layui-icon-search"></i>查询
            </a>
            <a href="javascript:" class="layui-btn layui-btn-warm layui-btn-sm js-reset">
                <i class="layui-icon layui-icon-refresh-1"></i>重置
            </a>	        
    	</div>
      </div>
	 <table class="layui-table">		
			<thead>
                <tr>
                     <th class="align-center" width="50px" nowrap="nowrap">序号</th>
                     <th class="align-center" nowrap="nowrap">用户名称</th>
                     <th class="align-center">创建时间</th>
                     <th class="align-center">状态</th>
                     <th class="align-center" width="150px">操作</th>
                 </tr>
             </thead>
             <tbody>
                 <#if userList?has_content>
                     <#list userList as dataItem>  
                     <tr>
                         <td class="align-center" width="50px" nowrap="nowrap">
                             ${(pageNo-1)*pageSize+dataItem_index+1}
                         </td>
                         <td class="align-center" nowrap="nowrap">
                             ${dataItem.uname}
                         </td>
                         <td class="align-center">
                             <span>${(dataItem.indate)?date}</span>
                         </td>
                         <td class="align-center" nowrap="nowrap">
                             <#if dataItem.enable?string == "T">
                                 <span class="layui-bg-green status-show">启用</span>
                             <#else>
                                 <span class="layui-bg-red status-show">禁用</span>
                             </#if>
                         </td>								
					<td class="align-center">
						<#if returnPage?has_content && returnPage=="compere_uname">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
						  <#else> style="width: 20px;"</#if>  onclick='inpChange("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="link_uname">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='inpLinkUname("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="summary_uname">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='inpSummaryUname("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="chargeName">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='inpChargeName("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="projectChargeName">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='projectChargeName("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="workReportUname">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='workReportUname("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   <#elseif returnPage?has_content && returnPage=="roomChargeUname">
						  <input type="button" <#if dataItem.userId == uid>style="width: 20px;" class="layui-btn layui-btn-xs layui-btn-normal"
                          <#else> style="width: 20px;"</#if>  onclick='roomChargeUname("${dataItem.userId}","${dataItem.uname}")' title="选择"/>
	                   </#if>
					</td>
				</tr>
				</#list>
			<#else>
				<tr class="align-center">
					<td style="color:red;font-weight:bold;" colspan="7">暂无符合条件的信息</td>
				</tr>
			</#if>
			</tbody>
		</table>				
</form>
</@override>
<@override name="page-scripts">
<script>
	$(function(){
	    layui.use(['form','layer','element', 'jquery'], function(){
	        var form=layui.form;
	        var layer=layui.layer;
	        var element = layui.element;
	        var $ = layui.jquery;
	        $('.js-reset').on('click', function(){
	            $('#pageNo').val(1);
	            $('#sponsorDid').val("");
	            $('form:first').submit();
	        });
	    })
	})
	function  inpChange(userId,uname){
		  window.parent.contentWindowL(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  inpLinkUname(userId,uname){
		  window.parent.contentLinkU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  inpSummaryUname(userId,uname){
		  window.parent.contentSummaryU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  inpChargeName(userId,uname){
		  window.parent.meetingU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  projectChargeName(userId,uname){
		  window.parent.projectChargeNameU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  roomChargeUname(userId,uname){
		  window.parent.roomChargeUnameU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
	function  workReportUname(userId,uname){
		  window.parent.roomChargeUnameU(userId,uname);
		  var index = parent.layer.getFrameIndex(window.name); 
		  parent.layer.close(index);
	}
</script>
</@override>
<@extends name="/layout/basepage.html"/> 
